<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const data = [{
            "signal": "IHU_LIN2-CcsmIhu_Lin2Fr05-ReWinOrReMirrElecDefrstBtn"
        },
        {
            "signal": "IHU_LIN2-CcsmIhu_Lin2Fr05-MultiFctKnobPosReq"
        },
        {
            "signal": "IHU_LIN2-CcsmIhu_Lin2Fr05-MultiFctKnobDirReq"
        },
        ]
        const idsToFilter = [
            "IHU_LIN2-CcsmIhu_Lin2Fr05-MultiFctKnobDirReq",
            "IHU_LIN2_CcsmIhu_Lin2Fr05_ReWinOrReMirrElecDefrstBtn"
        ];
        const  newDate = new Set(data);
        const firstElement = newDate.values().next().value;
        console.log(firstElement);

        const idsSet = new Set(idsToFilter);
            console.time();
            console.log(idsSet);
        const task = data.filter(item => idsSet.has(item.signal));
        console.log(task, 'newData');
        console.timeEnd();

    </script>
</body>

</html>